package proxy.cglibproxy;

/**
 * @author : DuJiabao
 * @Date : 2021/3/16 14:42
 * @Project : design-pattern
 * @File : null.java
 * @Desc :
 */
public class Client {
  public static void main(String[] args) {
    ProxyFactory proxyFactory = new ProxyFactory(new TeacherDao());
    TeacherDao instance = (TeacherDao) proxyFactory.getProxyInstance();
    instance.teach();
  }
}
